import java.util.BitSet;

class Animals{
    public String name="qian";
    public void eat(){
        System.out.println(this.name+"吃饭");
    }

    public Animals(String name) {
        this.name = name;
    }
}
class Cat extends Animals{
    public Cat(){
        //显示的调用父类构造方法
        super("小花");
    }
}
class Birds extends Animals{
    public Birds(String name){
        super(name);
    }
    public void fly(){
        System.out.println(this.name+"飞起来了！");
    }
}
public class TestDemo3 {
    public static void main(String[] args) {
        Birds birds=new Birds("小梅");
        birds.eat();
        birds.fly();
    }
}
